package tech.fangsong.im.core.cmd;

public enum MsgType {
    REQUEST((byte)0,'R',"请求包"),ACK((byte)1,'A',"应答包"),NOTIFY((byte)2,'N',"通知包");

    private byte type;
    private char flag;
    private String desc;

    MsgType(byte type,char flag,String desc){
        this.type = type;
        this.flag = flag;
        this.desc = desc;
    }

    public byte getType() {
        return type;
    }

    public void setType(byte type) {
        this.type = type;
    }

    public char getFlag() {
        return flag;
    }

    public void setFlag(char flag) {
        this.flag = flag;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
